package com.qr.service.Impl;

import com.github.pagehelper.PageHelper;
import com.qr.dao.UserMapper;
import com.qr.pojo.User;

import com.qr.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    public User findUserByName(String username) {
        return userMapper.findUserByName(username);
    }

    public int deleteUser(String username) {
        return userMapper.deleteUser(username);
    }

    public int insertUser(User user) {
        return userMapper.insertUser(user);
    }

    public int updateUser(User user) {
        return userMapper.updateUser(user);
    }

    public List<User> AllUser() {

        return userMapper.AllUser();
    }

}
